package com.joseph.base;

import java.util.HashMap;

import org.dozer.DozerBeanMapper;

/**
 * @description 
 * @author Joseph_Mok
 * @date 2016年2月2日下午6:47:32
 */
@SuppressWarnings({"unchecked" ,"rawtypes"})
public class BaseDto extends HashMap <String, Object>{

	private static final long serialVersionUID = 1L;
	
	public <T> T toObject(Class c) {
		DozerBeanMapper mapper = new DozerBeanMapper();
		return (T)mapper.map(this, c);
	}
}
